package com.bhms.module.users.org.service;

import java.util.List;

import com.bhms.module.users.org.mapper.Group;
import com.bhms.module.users.org.mapper.GroupMapper;

public class GroupServiceBean implements GroupService {

	private GroupMapper groupMapper;

	/**
	 * 查询职能组织机构处理方法
	 * 
	 * @return
	 */
	@Override
	public List<Group> searchGroup(Group group) {
		int totalCount = groupMapper.count(group);
		group.setTotalLine(totalCount);
		return groupMapper.select(group);
	}

	public void setGroupMapper(GroupMapper groupMapper) {
		this.groupMapper = groupMapper;
	}
}
